package main

import (
	"fmt"
	"gin-gorm-learn/cfg"
	"gin-gorm-learn/routers"
	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()

	// 注册路由
	routers.TaskRouterInit(r)
	routers.AdminRouterInit(r)

	r.GET("/ping", func(c *gin.Context) {
		c.String(200, "Pong")
	})
	fmt.Println("http://localhost:8000")
	r.Run(cfg.SERVER_PORT)
}
